package com.danco.training.zaneuskaya.domain.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Order implements Serializable, Cloneable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2272919292488833606L;
	private int id;
	private List<Book> books;
	private boolean executed;
	private Date orderDate;
	private double totalPrice;

	
	public Order(int id) {

		this.id = id;
		this.books = new ArrayList<Book>();
		this.executed = false;
		this.totalPrice = 0;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public List<Book> getBooks() {
		return books;
	}

	public void setBooks(List<Book> books) {
		this.books = books;
	}

	public boolean isExecuted() {
		return executed;
	}

	public void setExecuted(boolean executed) {
		this.executed = executed;
	}

	public Date getOrderDate() {
		return orderDate;
	}

	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}

	public double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Order clone() throws CloneNotSupportedException {

		return (Order) super.clone();

	}

}
